package nl.saxion.ein4b.model;

/**
 * Real player for blackjack game
 * 
 * @author Harm
 * 
 */
public class RealPlayer extends Player {

	private Profile profile;

	public RealPlayer(Profile p) {
		super();
		profile = p;
	}

	@Override
	public void setCredit(int credit) {
		profile.setCredit(credit);
	}

	@Override
	public int getCredit() {
		return profile.getCredit();
	}

	@Override
	public String getName() {
		return profile.getName();
	}

	public Profile getProfile() {
		return profile;
	}

}
